﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplicationMenu
{
    public partial class WebFormTestingMenu : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            this.MenuCars.MenuItems = new List<WebApplicationMenu.Menu.MenuItem>() 
            { 
                new WebApplicationMenu.Menu.MenuItem(){Title="BMW", URL="bmw.bg"},
                new WebApplicationMenu.Menu.MenuItem(){Title="Mercedes", URL="vw.bg"},
                new WebApplicationMenu.Menu.MenuItem(){Title="VW", URL="merc.bg"},
            };

            this.MenuCars.DataBind();
        }
    }
}